package com.szjz.rabbitmq.swagger;


import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;

/**
 * author:szjz
 * date:2019/6/19
 */
@Data
@Component
@ConfigurationProperties(prefix = "swagger")
public class SwaggerProperties {


    /**
     * Controller所在包名
     */
    private String scanPackage;

    /**
     * 指定url路径
     */
    private String path;

    /**
     * 文档标题
     */
    private String title = "Restful Api";

    /**
     * 文档描述
     */
    private String desc = "后台管理API";

    @Getter
    @NestedConfigurationProperty
    private GroupName groupName = new GroupName();

    /**
     * 文档组名
     */
    @Data
    private class GroupName {
        /**
         * admin
         */
        private Boolean admin;

        /**
         * portal
         */
        private Boolean portal;

        /**
         * auth
         */
        private Boolean auth;

        /**
         * base
         */
        private Boolean base;
    }

}
